from django.urls import path, re_path, include

from . import views

app_name = 'orders'
urlpatterns = [
    # 展示新增订单数据
    re_path(r'^orders/settlement/$', views.OrderSettlementView.as_view(), name='settlement'),
    # 生成订单
    re_path(r'^orders/commit/$', views.OrderCommitView.as_view()),
    # 生成订单
    re_path(r'^orders/success/$', views.OrderSuccessView.as_view()),
    # 用户订单展示
    re_path(r'^orders/info/(?P<page_num>\d+)/$', views.UserOrderInfoView.as_view(), name='info'),
    # 订单评价
    re_path(r'^orders/comment/$', views.OrderCommentView.as_view()),

]
